// Copyright 2008 David Mitchell
// Released under the MIT License

using System;
using System.Runtime.InteropServices;

namespace NSDuctTape
{
	internal static class MarshalUtility
	{
		public static T PtrToStructure<T>(IntPtr value)
			where T : struct
		{
			return (T)Marshal.PtrToStructure(value, typeof(T));
		}
	}
}
